using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._IntelligenceTools._Conversion
{
    /// <summary>
    /// <para>Points To Track Segments</para>
    /// <para>Converts time-enabled sequences of input point data, such as GPS points, to a series of output paths.</para>
    /// <para>将启用时间的输入点数据序列（如 GPS 点）转换为一系列输出路径。</para>
    /// </summary>    
    [DisplayName("Points To Track Segments")]
    public class PointsToTrackSegments : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public PointsToTrackSegments()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>Point features as point positions along the tracks to be created.</para>
        /// <para>点要素作为沿要创建的轨迹的点位置。</para>
        /// </param>
        /// <param name="_date_field">
        /// <para>Date Field</para>
        /// <para>The date field that will be used to order the Input Features points.</para>
        /// <para>将用于对输入要素点进行排序的日期字段。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The output track line features.</para>
        /// <para>输出轨道线特征。</para>
        /// </param>
        public PointsToTrackSegments(object _in_features, object _date_field, object _out_feature_class)
        {
            this._in_features = _in_features;
            this._date_field = _date_field;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "Intelligence Tools";

        public override string ToolName => "Points To Track Segments";

        public override string CallName => "intelligence.PointsToTrackSegments";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_features, _date_field, _out_feature_class, _group_field, _include_velocity.GetGPValue(), _out_point_feature_class];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>Point features as point positions along the tracks to be created.</para>
        /// <para>点要素作为沿要创建的轨迹的点位置。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Date Field</para>
        /// <para>The date field that will be used to order the Input Features points.</para>
        /// <para>将用于对输入要素点进行排序的日期字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Date Field")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _date_field { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The output track line features.</para>
        /// <para>输出轨道线特征。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Group Field</para>
        /// <para>A field from the Input Features parameter that will be used to group the input points. Each unique group will create a separate track.</para>
        /// <para>输入要素参数中的字段，将用于对输入点进行分组。每个独特的组将创建一个单独的轨道。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Group Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _group_field { get; set; } = null;


        /// <summary>
        /// <para>Include Velocity Fields</para>
        /// <para><xdoc>
        ///   <para>Specifies whether velocity fields (speed_mps, speed_mph, speed_kph, and speed_knt) will be included in the Output Feature Class parameter.</para>
        ///   <bulletList>
        ///     <bullet_item>Checked—Output velocity fields will be included in the output. This is the default.</bullet_item><para/>
        ///     <bullet_item>Unchecked—Output velocity fields will not be included in the output.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定速度字段（speed_mps、speed_mph、speed_kph 和 speed_knt）是否包含在输出要素类参数中。</para>
        ///   <bulletList>
        ///     <bullet_item>选中 - 输出速度字段将包含在输出中。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>未选中 - 输出速度字段将不包括在输出中。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Include Velocity Fields")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _include_velocity_value _include_velocity { get; set; } = _include_velocity_value._true;

        public enum _include_velocity_value
        {
            /// <summary>
            /// <para>INCLUDE_VELOCITY</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("INCLUDE_VELOCITY")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>EXCLUDE_VELOCITY</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("EXCLUDE_VELOCITY")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Output Sequence Points</para>
        /// <para>The output point features. The output will include a SEQUENCE field that contains the order that will be used for the path created in the Output Feature Class parameter.</para>
        /// <para>输出点功能。输出将包括一个 SEQUENCE 字段，该字段包含将用于在输出要素类参数中创建的路径的顺序。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Sequence Points")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _out_point_feature_class { get; set; } = null;


        public PointsToTrackSegments SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}